import http from '../thingsBoard';

// thingsBoard 登录
export function thingsBoardLogin(data) {
    return http({
        url: "/api/auth/login",
        method: "post",
        data: data
    })
}

// thingsBoard 刷新token
export function thingsBoardRefreshToken(data) {
    return http({
        url: "/api/auth/token",
        method: "post",
        data: data
    })
}

// 添加仪表盘
export function addDashboard(data) {
    return http({
        url: "/api/dashboard",
        method: "post",
        data: data
    })
}

// 获取时间戳
export function dashboardServerTime() {
    return http({
        url: "/api/dashboard/serverTime",
        method: "post",

    })
}





